{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf350
{\fonttbl\f0\fnil\fcharset0 Monaco;}
{\colortbl;\red255\green255\blue255;\red0\green0\blue0;\red0\green0\blue191;\red191\green0\blue0;
\red0\green0\blue191;\red191\green0\blue0;}
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural

\f0\fs18 \cf2 : \cf3 NetworkPiece\cf2  \{\
	\
	\cf4 /*\
	 * Add all new agruments after the given ones.\
	 */\cf2 \
	*new \{\cf3 |name,ip,port|\cf2 \
		^\cf3 super\cf2 .newCopyArgs(name,ip,port).init.initRandSync;\
	\}\
	\
	\cf0 init \{\
		\
		\cf5 this\cf0 .storeSynthDefs;\
		\
	\}\
	\
	\cf6 /*\
	 * Create all your SynthDefs here.\
	 */\cf0 \
	storeSynthDefs \{\
		\
		\cf6 /*\
		\
		Example of how to use the factory method from NetworPiece.\
		The arguments out, pan, amp, and randID are alreay provided.\
		The UGens RandID, SanityCheck2, Out, and Pan2 are already provided.\
		Simply name the synth, give the arguments you want, and make the sound "pre out."\
		\
		this.stdSynthDef("nameOfSynth", \{|freq=440, gate=1|\
			var sig, env;\
			\
			env = EnvGen.kr(Env.perc(0.02,1,1), gate, doneAction:2);\
			\
			sig = SinOsc.ar(freq,0,env);\
		\});\
		*/\cf0 \
		\
	\}\cf2 \
	\
	free \{\
		\cf3 super\cf2 .free;\
		\
	\}\
\}}